Post new topic    
Slime Knight
Send private message
Appearance according to weapon 
 PostSat Oct 01, 2011 11:06 pm
Send private message Reply with quote
is there any kind of plotscript I can use to say, if a hero has or arms a specific weapon, then the hero's in-battle picture turns to one that has that particular weapon in it?

like one that goes:

If player has SHOTGUN then use ingame picture (insert pic here).

If anyone could help me with this, it's be much appreciated.
King Slime
Send private message
 
 PostSat Oct 01, 2011 11:12 pm
Send private message Reply with quote
I do believe you use tags and each step scripts. You see, each weapon should get their own tags. Then, have an each step script that checks for tags that will change the heroes in-battle appearance with successful tag checks.

If the hero is wielding a shotgun, you would use Check Tags on an each step script to Set Hero Picture to whatever set of sprites has a shotgun in it.
Slime Knight
Send private message
 
 PostSat Oct 01, 2011 11:22 pm
Send private message Reply with quote
there are a ton of ways i have seen this done in the past...

but we have a new feature since then! on-close menu scripts! set something like this to run when you close the main menu:
Code:

script, changeherolook, begin
 if (check equipment (hero, slot)) then (
  set hero picture picture (who, inside battle)
 )
end
Slime Knight
Send private message
 
 PostSat Oct 01, 2011 11:29 pm
Send private message Reply with quote
thanks, Shakeyair and MasK.

I forgot all about the on-close menu scripts!
But anyway, now I can make hero GFX for when the characters have:

-Rifle Weapons
-Chainsaw Weapons
-Knife Weapons
-Pistol/Handgun Weapons
-Rocket/Explosive Type Weapons
-Dark Claw
-BFG9000
-Throwable explosives

----------------------
That's a lot for me to put to the table. Completely worth it.
Slime Knight
Send private message
 
 PostMon Oct 03, 2011 2:12 am
Send private message Reply with quote
Code:

plotscript, update equip graphics, begin
  variable (who)

  who := find hero (hero: flynn)
  if (who <> -1) then (  # hero is in party
    reset hero picture (who, inside battle)
   

    # Knife
    if (check equipment (who, slot:weapon) == item: Knife) then (
      set hero picture (who, 4, inside battle)
       
    )
    # Shotgun
    if (check equipment (who, slot:weapon) == item: Shotgun) then (
      set hero picture (who, 7, inside battle)
     
    )
    # Rifle
    if (check equipment (who, slot:weapon) == item: Rifle) then (
      set hero picture (who, 0, inside battle)
     
    )
  )
end
 
Display posts from previous: