SphereCommunity
How to (merge) - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: How to (merge) (/Thread-How-to-merge)



How to (merge) - seafish - 11-04-2013 04:55 AM

Hello!
Tell me please I want to know, how to add:
Code:
ref1=<argo>
    local.more1=<ref1.more1>
    local.mob= <strsub 3 4 <local.more1>>
    local.mob= c_elem_<local.mob>
    call f_earth_mob_spawn

correctly to:

Code:
ON=@ResourceFound
IF (<SRC.Mining> >= 100.0) && (RAND(200)==1)
      ARGO.MORE=mr_mario
   ELIF (<SRC.Mining> >= 99.0) && (RAND(175)==2)
      ARGO.MORE=mr_pokemon
lalala



RE: How to (merge) - Mordaunt - 11-04-2013 06:13 AM

The first piece of code sets up elementals to be summoned when mining.
The second you have there sets a random chance of a different nintendo game character mining resource if the mining skill is met.

Not sure exactly what you are trying to achieve


RE: How to (merge) - seafish - 11-04-2013 06:24 AM

heh, ye I would like to put first piece of code to second, its possible?


RE: How to (merge) - Mordaunt - 11-04-2013 06:43 AM

given that both exist under the same trigger yes.
Though if you expect it to create an elemental for your new resources you will have to script the actual elemental so that it can be summoned, also it would be under more1 not more


RE: How to (merge) - seafish - 11-04-2013 07:08 AM

thank you for respond!