Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPAWN that checks townstone?
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #11
RE: SPAWN that checks townstone?
couldnt you make a custom spawn gem for each town? save one step


so far

Code:
[TYPEDEF t_spawn_luoyang]
ON=@Timer
IF (<UID.040004100.LINK>==01ffd)//caocao
more={c_wei_infantry_light_f 1 c_wei_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01fda)//sunquan
more={c_wu_infantry_light_f 1 c_wu_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01fd1)//liubei
more={c_shu_infantry_light_f 1 c_shu_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01fd5)//yuanshao
more={c_ys_infantry_light_f 1 c_ys_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01fc5)//lubu
more={c_lb_infantry_light_f 1 c_lb_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01ff7)//zhangjiao
more={c_yt_infantry_light_f 1 c_yt_infantry_light_c 1}
ELSE
IF (<UID.040004100.LINK>==01fdc)//menghuo
more={c_mh_infantry_light_f 1 c_mh_infantry_light_c 1}
ENDIF

[TYPEDEF t_spawn_changan]
ON=@Timer
IF (<UID.040004101.LINK>==01ffd)//caocao
more={c_wei_infantry_light_f 1 c_wei_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01fda)//sunquan
more={c_wu_infantry_light_f 1 c_wu_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01fd1)//liubei
more={c_shu_infantry_light_f 1 c_shu_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01fd5)//yuanshao
more={c_ys_infantry_light_f 1 c_ys_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01fc5)//lubu
more={c_lb_infantry_light_f 1 c_lb_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01ff7)//zhangjiao
more={c_yt_infantry_light_f 1 c_yt_infantry_light_c 1}
ELSE
IF (<UID.040004101.LINK>==01fdc)//menghuo
more={c_mh_infantry_light_f 1 c_mh_infantry_light_c 1}
ENDIF

spawn any soldier, with any min max & distance
then target with
.xevents +t_spawn_luoyang

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-24-2015 11:34 AM by x77x.)
01-24-2015 11:19 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #12
RE: SPAWN that checks townstone?
I don't know others ... but I do not understand what you are trying to do.

BTW look at my last post and correct your if-else-if issue.
01-25-2015 01:19 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #13
RE: SPAWN that checks townstone?
its working...
i just figured making a spawngem for each town would be easier than targeting each one


Code:
[ITEMDEF i_spawn_luoyang]
ID=01ea7
//Worldgem bit plain and small (see fancy bit at 1f13)
DEFNAME=i_worldgem_bit
VALUE=1
TYPE=t_spawn_char
EVENTS=t_spawn_luoyang
CATEGORY=3KUO
SUBSECTION=City Spawns
DESCRIPTION=LuoYang Worldgem Bit

ON=@CREATE
EVENTS +t_spawn_luoyang

[ITEMDEF i_spawn_changan]
ID=01ea7
//Worldgem bit plain and small (see fancy bit at 1f13)
DEFNAME=i_worldgem_bit
VALUE=1
TYPE=t_spawn_char
EVENTS=t_spawn_changan
CATEGORY=3KUO
SUBSECTION=City Spawns
DESCRIPTION=ChangAn Worldgem Bit

ON=@CREATE
EVENTS +t_spawn_changan


good idea?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-26-2015 05:06 AM by x77x.)
01-25-2015 04:11 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #14
RE: SPAWN that checks townstone?
nevermind

ERROR:(3kuo_cityspawns.scp,21)Undefined keyword 'EVENTS'

Dragons of Time 2000-2020
http://dragonsoftime.com
01-26-2015 05:08 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #15
RE: SPAWN that checks townstone?
TEVENTS

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-26-2015 05:53 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #16
RE: SPAWN that checks townstone?
no luck...
ill go back to the other way

Dragons of Time 2000-2020
http://dragonsoftime.com
01-26-2015 07:01 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #17
RE: SPAWN that checks townstone?
Events are placed in the @Create, TEVENTS in the ITEMDEF/CHARDEF definition:
Code:
[ITEMDEF i_spawn_luoyang]
ID=01ea7
//Worldgem bit plain and small (see fancy bit at 1f13)
DEFNAME=i_worldgem_bit
VALUE=1
TYPE=t_spawn_char
EVENTS=t_spawn_luoyang
CATEGORY=3KUO
SUBSECTION=City Spawns
DESCRIPTION=LuoYang Worldgem Bit
TEVENTS=yourevent
01-27-2015 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)