View previous topic :: View next topic |
Author |
Message |
Bob360 Rusty Vet
Joined: 25 Mar 2003 Posts: 33
|
Posted: Tue May 06, 2003 1:11 am Post subject: I feel dumb for asking this but how can I... |
|
|
make a script run when i equip an item such as a piece of clothing.... (i really should be able to do this) |
|
Back to top |
|
|
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Tue May 06, 2003 4:11 am Post subject: |
|
|
If you want sort of an immediate thing, have a keypress script that checks to see if you have it (and if it is equipped run whatever you want to, of course), and set the 'if key is pressed' thing to whatever ESC's scancode it. I've tried it before, and so long as suspend player isn't on the key-press script will activate immediately after the menu is cancelled, because the menu takes priority. Or you could just set it to an on-key press or on-step. It doesn't really matter...
EDITED FOR IDIOT TYPO _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
|
Bob360 Rusty Vet
Joined: 25 Mar 2003 Posts: 33
|
Posted: Tue May 06, 2003 4:22 am Post subject: |
|
|
The only problem with that is i would have to put that script onto every map . Do you think it would work to have it so you can only equip it through the items menu? |
|
Back to top |
|
|
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Tue May 06, 2003 4:24 am Post subject: |
|
|
That would be a tad annoying because you wouldn't be able to see if it was better or worse than your normal armor. So, what's the problem with putting it on every map? You just... set it to the script for those maps... if you already have a key-press script, it can be incorporated into it. I don't see the problem... it would take several minutes tops to set in every map. _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
|
Bob360 Rusty Vet
Joined: 25 Mar 2003 Posts: 33
|
Posted: Tue May 06, 2003 12:29 pm Post subject: |
|
|
Thanks and i think i have got it figured out.... im going to have it display a textbox that will have the option to equip or not and the textbox will tell what it will do you stats _________________ -----------------------------
Jeet Kune Do isnt anything special really
-Bruce Lee
A hundred pound man could beat a 300 pound man
-Bruce Lee |
|
Back to top |
|
|
PIcaRDMPC
Joined: 28 Mar 2003 Posts: 186
|
Posted: Tue May 06, 2003 2:47 pm Post subject: |
|
|
You could also do it in the description of the item, if you made unique pictures for the stats, like Fenrir did for FFH. |
|
Back to top |
|
|
Setu_Firestorm Music Composer
Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
Posted: Thu May 08, 2003 9:46 am Post subject: |
|
|
That, or you could just use the item from the items menu, attach it to a text box, and attach a script to the text box like this:
Code: | script, Put some clothes on, begin
force equip (hero:you,slot:your body, item:equipment)
end |
That should do it, too! _________________
Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com |
|
Back to top |
|
|
Guest
|
Posted: Thu May 08, 2003 11:34 am Post subject: I think i got it |
|
|
It works great now... all the equipment has to be equiped through the items menu and i renamed the Equip menu item to Equipment...
its cool! now when you equip things it alters your walkabout and stuff so thanks lots |
|
Back to top |
|
|
Guest
|
Posted: Thu May 08, 2003 11:37 am Post subject: |
|
|
Blazes Battles Inc. wrote: | So, what's the problem with putting it on every map? You just... set it to the script for those maps... |
the problem with that is simple battle scripting (all three different battle sytems)... |
|
Back to top |
|
|
|