HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Swapping System

11-02-2004, 10:42 AM#1
harbinger2004
Ok now, I need help creating a system that will allow you to select a boat from a shipyard and then your hero (which will already be a boat) will become that boat and get all the items, experience and other stuff that it originally had. Please help me. I understand how to trigger, im just crap at it is all.

Thanks, Harbinger2004
11-02-2004, 01:59 PM#2
c-r0w
Lemme get this straight.

when you buy a boat in the shipyard. you want your hero to transform into the boat?

ok.. you can do it like this:





im just gonna write in some bogus coding language so you'll understand what do do.

event:
unit sells a unit
cond:
sold unit = boat
action:
for(Integer A = 1to6)
{
give (item carried by hero in slot(integer A)) to sold unit
}
set experiens of boat to heros experience
replace hero with boat




something like this should do it i think... im not at my WC computer now so i cant realy check what to do.

the give item command might just give the hero an order to give the items, i dont know, or it might just be swapped
11-03-2004, 09:43 AM#3
harbinger2004
thanx i'll give it a try