• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Mod] Issue

tarjei

Necronian Engineer
Joined
May 25, 2008
Messages
504
Reaction score
126
Location
Poland
Hello there!!
Is been a while since I was scripting for the last time but I dicided to start doing it again : )
I found really usefull thing - mods.

I have simple question to advenced users of mods - Is it possible to share <config> zone with othere moduls? By that I mean function domodlib just copy <config> and paste it in proper place..
And If I want talkactions and actions share the same <config>?

For example :
( dont care about syntax errors :P)

Code:
<config>
       some value = 50
 </config>
 <movevents>
     onStepIn
           some value = 30

      -- now I want to print value after death
     print(some value) <<<------IS THAT POSIBLE???
 <movevents>

 <event 'death'>
      onDeath
       if something then
          some value = 0
       else
          some value = 43
 </event>






Thanks in advance for replies : )
 
No you can't, thats because current lua implementation in otserv does not share same state (every script system - moveevents, actions, talkactions have their own lua states - saying shorten: you can share values but only if they are in same state - actions with actions, moveevents with moveevents etc).

Its already changed and will be available in near feature - when revscriptsys will be done! ;-)
 
Back
Top