Jump to content

Ice Melt Script


Recommended Posts

ok, so i am making a spell which is used to let (specified) ice objects. so the outline for my script was as a spell. Supposed to work as:

on target, if the hit object IS the ice, display a message box

if it was NOT the specified ice, it shows a message saying that

inside the message box, do you want to melt it, yes, no

yes = disable ice block and remove cost item)

no = small spell that hurts player

(i'd have put the script here, but when i was tryng to fix it, i accidently saved it and dont remember what it was)

 

ISSUE: when you fire the spell, on any object NOT the specified ice, the message comes up telling you the spell wont work (good) HOWEVER, when you hit the actual ice, nothing happens. (BAD)

 

can somebody perhaps make such a script or tell me where i could have gone wrong? (i know that one would be difficult without the actual script

Link to comment
Share on other sites

ok, if anyone wants to know to do the script themselves, the object ids for the stuff in the script are:

ice: aaaice

costing object: aaafiregem

refusal spell: aaarunerefusal

 

thanks

btw i used the getisid aaaice command

 

something like

 

begin scripeffectstart

if getisid aaaice == 1

messagebox "Destory this Ice?" "Yes" "No"

elseif getisid == 0

message "This is not Ice"

endif

endif

end

 

begin scripteffectupdate

ife getbuttonpressed ==0...

 

etc. (I realize i left out a lot of it but i think you get the jist of it) (also i know i left out the stuff for the message box including the variables, but they WERE in there in the first one.)

Link to comment
Share on other sites

also, i wanted to make it the other way around too... for the ice people, i wanted them to be able to take the melted ice, and make it usable again. By that, however, i mean that in order to have the player know that the disabled ice was there, there would have to be a marker of some sort (puddle or something) that would become evident once the ice was disabled. this probably could be done just by me putting something underneath the ice though right? something that would become more visible once the ice was disabled? I think that is what i will do, however, i still need to make the original script of melting the ice to work first, before i can actually do that part.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...