| 09-04-2004, 10:58 PM | #1 |
I want to have it so that when my charicter picks up a magic book hell get it in his inventory, and then when he uses it it will either do nothing, gain a level, gain expereience, 1 to all attributes, or 2 to any one attribute. Is there any way the world editor a have chance. |
| 09-04-2004, 11:24 PM | #2 |
mmm interesting... i did that once. remove the item's ability/upgrade/attribute bonus or whatever. then, use just one basic trigger: *events a unit uses an item *conditions item being manipulated = [your item] *actions add [ability/upgrade/bonus] to [unit/hero manipulating item] that's all. gl ![]() |
| 09-04-2004, 11:30 PM | #3 |
k, but how would i make it so if i had it so there were more than one book. How would i make it so it would have a different ability the second time and every time you play the game the first time u used the book it would do a differnt ability, well not always but most times. Doesnt there have to be like have to be an integer of some kind. like set variable to random interger between 1-6. |
| 09-04-2004, 11:42 PM | #4 |
all right. i knew you'd ask that :\ i used a random integer. you need an integer variant named... for example: MyInteger actions set [MyInteger] random value between 1 and 10 if - conditiones MyInteger = 1 then - actions add [ability/upgrade] to [unit manipulating item] skip remaining actions else - actions do nothing if - conditiones MyInteger = 2 then - actions add [ability/upgrade] to [unit manipulating item] else - actions do nothing skip remaining actions etc etc ![]() |
| 09-04-2004, 11:53 PM | #5 |
Thank you |
