SphereCommunity
About i_worldgem_bit props. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: About i_worldgem_bit props. (/Thread-About-i-worldgem-bit-props)



About i_worldgem_bit props. - amonvangrell - 05-22-2013 11:47 AM

Hello again my friends, am trying to make a short spawner to my unique chars, so every time I want/need I can just type one command and the shard its back to this default spawned state.

But am facing terrible difficulties with the props of the i_worldgem_bit.

how to set with this function founded in another person script.

Code:
[FUNCTION F_SPAWNER]
SERV.NEWITEM=i_worldgem_bit
NEW.MORE=<ARGV[0]>
NEW.P=<ARGV[1]>,<ARGV[2]>,<ARGV[3]>,<ARGV[4]>
NEW.AMOUNT=<ARGV[5]>
NEW.MOREP=<ARGV[6]>,<ARGV[7]>,<ARGV[8]>
NEW.ATTR=0B0
NEW.TIMER=1

and calling, using: F_SPAWNER banker,2503,552,0,0,2,5,10,10
am facing the situation where the value I set its not constant, so I cannot ID each arg.

For example, if I change the ARG[2], from 2 to something else, BUM! the whole arguments kind of behave funny. Its like in a spawngem you have fix min/max for each value, like range, or amount...

It seems that they all go in morep, but is morep limited to an amount of characters?


RE: About i_worldgem_bit props. - RanXerox - 05-23-2013 12:19 AM

You can access MOREP components individually as: MOREX MOREY MOREZ and MOREM... in other words this:

NEW.MOREP=<ARGV[6]>,<ARGV[7]>,<ARGV[8]>

...could be written as:

NEW.MOREX=<ARGV[6]> //minimum spawn time
NEW.MOREY=<ARGV[7]> //maximum spawn time
NEW.MOREZ=<ARGV[8]> //distance creature will wander from home
NEW.MOREM=0 //not used in a spawner


RE: About i_worldgem_bit props. - amonvangrell - 05-23-2013 06:01 AM

(05-23-2013 12:19 AM)RanXerox Wrote:  You can access MOREP components individually as: MOREX MOREY MOREZ and MOREM... in other words this:

NEW.MOREP=<ARGV[6]>,<ARGV[7]>,<ARGV[8]>

...could be written as:

NEW.MOREX=<ARGV[6]> //minimum spawn time
NEW.MOREY=<ARGV[7]> //maximum spawn time
NEW.MOREZ=<ARGV[8]> //distance creature will wander from home
NEW.MOREM=0 //not used in a spawner

thank you so much! you made my day!Lol