| 11-03-2003, 01:38 AM | #1 |
Im making an RPG and instead of the 3 stats (STR INT AGI) Affecting things like health and mana, i want them to affect items, like Strength requirements that are in alot of RPGs, like diablo. What would the trigger be for having stats as requirements? Some rough idea here: Event- Unit picks up an item Conditions- Item is Axe Action- If/Then/Else If triggering units STR is = or > # then do nothing else do nothing Action- If/Then/And If triggering units STR is < # then Drop item and display to player (Your strength is not high enough to equip this. You need # STR) Tell me if this would work (or if those triggers even exist) or if i would need to use (sigh) JASS to make it work. If it doesnt work, plz tell me whats wrong Thanks :thrust: |
| 11-03-2003, 03:26 AM | #2 |
Cut the part with the 'If X then do nothing else do nothing' (You don't have to tell it to do nothing.) and you should have yourself a working trigger. Oh, and triggering unit should be replaced with 'Hero manipulating item'. |
| 11-03-2003, 03:35 AM | #3 | |
Quote:
So just cut out the extra do nothing, or cut out that whole trigger and itll work fine? i think i see what youre saying. But what is hero manipulating item? and where would i find the triggers for their stats? Is it exactly as I had it? Im asking this becuase i have only basic trigger expeirience. So you might be assuming i know something i really dont :bgrun: also if you know alot about these types of triggers i posted another thing about triggers and items named "Item balancing for my map" or something like that, i need some help there too please. |
| 11-03-2003, 04:04 AM | #4 |
You can get heroes attributes as an integer. Hero - Hero Attribute, Strength (or whatever) ie: Integer comparison: (Strength of (Hero manipulating item) (Exclude bonuses)) Greater than 50 You can use the items life for the amount of attribute required. |
| 11-03-2003, 05:06 AM | #5 |
Hey like i posted earlier i need help on another thread maybe if you have time you could look at it and tell me if im doing everything right thanks |
