HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

unit start wit item

09-19-2003, 01:29 AM#1
Crimsongg137
ok im alil stumped i want a unit to enter a map with a shitty weapon but i want that to able to be upgraded..
event: unit enter entire map
condition:unit is undead = true
create item for unit
?? rite

now say i have an upgrade called sword
now say if i finish that upgrade the next time the units will enter they will have a better sword but to do that i will have to turn off the other trigger.. but how do u make the upgrade produce new weapons
09-19-2003, 02:50 AM#2
AllPainful
Make an array of all the different upgraded weapons in order of worst to best (in my example the variable is called weapon), and a numeric variable keeping track of what level the upgrades are at (in my example the variable is called weaponlvl).

Code:
Event
  Unit enters region (playable map area)
Condition
  Unit is classfied undead equals true
Action
  Create item [color=red]weapon[/color][[color=red]weaponlvl[/color]] at location of entering unit
  Give last created item to entering unit