| 12-20-2003, 05:25 AM | #1 |
I want to know how to make it so that a hero cannot pick up more than 1 of the same type of item like more than 1 item that gives an armor bonus or one item that gives an attack bonus. I thought of an easier way in which i use the class types of items to be each type like permanent, charged, powerup etc. but i couldnt get it to work. Help would be greatly appretiiated. |
| 12-20-2003, 06:49 AM | #2 |
to my knowledge people usually sue a system where the items HP represent its class (1hp means its a shield, 2hp means its a sword etc) then use triggers to compare the Hp of an item when its picked up and then decide whether to drop it and play a mesage or do nothing etc.... |
| 12-20-2003, 10:28 AM | #3 |
Use something like: Event - A unit picks up an item Condition - Triggering unit is a hero = True Actions: Then do some If else statement with multiple actions and conditions with conditions. Then make a Multiple OR condition Next add something like Unit has Item of type blablabla and add all the stuff that you want (which are all the items of the same type (genre? class?) As for actions, use Hero Drop item being manipulated Which becomes something like: Code:
Event:
Unit Picks Up Item
Conditions
Triggering Unit is a hero = True
Actions:
If Then Else (Multiple Functions)
Conditons:
Multiple OR:
Unit has item of type blablabla = True
......
Action
Hero - Make Hero Drop (Item Manipulated) <--- Not sure about this function but there is something making hero drop the item |
